public final class Archive {
	public byte[] aByteArray88;
	public int anInt89;
	public int[] anIntArray90;
	public int[] anIntArray91;
	public int[] anIntArray92;
	public int[] anIntArray93;
	private boolean aBoolean94;

	public Archive(byte[] data) {
		method153(0, data);
	}

	private void method153(int i, byte[] is) {
		Packet packet = new Packet(is);
		int i_1_ = packet.get24BitInt1();
		int i_2_ = packet.get24BitInt1();
		if (i_2_ != i_1_) {
			byte[] is_3_ = new byte[i_1_];
			Bzip2Decompressor.method312(is_3_, i_1_, is, i_2_, 6);
			aByteArray88 = is_3_;
			packet = new Packet(aByteArray88);
			aBoolean94 = true;
		} else {
			aByteArray88 = is;
			aBoolean94 = false;
		}
		anInt89 = packet.getUShort();
		anIntArray90 = new int[anInt89];
		anIntArray91 = new int[anInt89];
		anIntArray92 = new int[anInt89];
		if (i == 0) {
			anIntArray93 = new int[anInt89];
			int i_4_ = packet.offset + anInt89 * 10;
			for (int i_5_ = 0; i_5_ < anInt89; i_5_++) {
				anIntArray90[i_5_] = packet.getInt();
				anIntArray91[i_5_] = packet.get24BitInt1();
				anIntArray92[i_5_] = packet.get24BitInt1();
				anIntArray93[i_5_] = i_4_;
				i_4_ += anIntArray92[i_5_];
			}
		}
	}

	public byte[] method154(String string, byte[] is) {
		int i = 0;
		string = string.toUpperCase();
		for (int i_6_ = 0; i_6_ < string.length(); i_6_++) {
			i = i * 61 + string.charAt(i_6_) - 32;
		}
		for (int i_7_ = 0; i_7_ < anInt89; i_7_++) {
			if (anIntArray90[i_7_] == i) {
				if (is == null) {
					is = new byte[anIntArray91[i_7_]];
				}
				if (!aBoolean94) {
					Bzip2Decompressor.method312(is, anIntArray91[i_7_], aByteArray88, anIntArray92[i_7_],
						anIntArray93[i_7_]);
				} else {
					for (int i_8_ = 0; i_8_ < anIntArray91[i_7_]; i_8_++) {
						is[i_8_] = aByteArray88[anIntArray93[i_7_] + i_8_];
					}
				}
				return is;
			}
		}
		return null;
	}
}
